import { LoginReq, User } from "@/typings/api/auth";
import { request } from "@/utils/request";

export const login = (data: LoginReq) => request.post("/auth/login", data);

export const logout = () => request.post("/auth/logout");

export const getUser = () => request.get<User>("/auth/user");

export const updateUser = (data: User) => request.post("/auth/updateUser", data);
